

from google.appengine.api import datastore


#datastore._PROPERTY_TYPES
#datastore._PROPERTY_MEANINGS
#entity_pb.Property.BLOB,

entity_pb.Property.OBJECT=16
entity_pb.Property._Meaning_NAMES[16]='OBJECT'


##NEEDS LOTS OF MORE WORK

class Object(str):
  """A object type, for storing python structures.

  Pickles python structures and save them as str.
  """

  def __new__(cls, arg=None):
    """Constructor.

    We accept objects instances.

    Args:
      arg: optional str instance (default None)
    """
    #if arg is None:
    #  arg = None
    #if isinstance(arg, str):
    return super(Object, cls).__new__(cls, arg)



